package com.boyunv.mediator.example01.example02;
/*
 *@description
 *抽象同事类
 *@author boyunv
 *@create 2023/9/10 10:00
 *@version 1.0
 */

public abstract class Person {
    
    protected String  name;
    
    //持有中介者的引用
    protected Mediator mediator;
    
    public Person(String name, Mediator mediator) {
        this.name = name;
        this.mediator = mediator;
    }
}
